package com.cc.wechat.websocket.message;

import lombok.Data;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WebSocketMessage<T> {
    private WebSocketMessageType type;    // 消息类型
    private Long senderId;                // 发送者ID
    private Long receiverId;              // 接收者ID
    private T data;                       // 消息数据
    private Long timestamp;               // 时间戳
} 